Keir Fraser [Fri, 5 Oct 2007 09:31:25 +0000 (10:31 +0100)]
[NW scripts] Choose alternative interface if NFSroot is used.
Allow the network bridging setup script to choose an alternative
network interface if it is determined that the root is mounted using
NFS, which is assumed to be done over the NIC serving the default
gw. In this case the prefix of the device is used to find other
devices, i.e., if eth0 is the default device an alternative device may
be an other ones starting with 'eth'.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 4 Oct 2007 16:58:16 +0000 (17:58 +0100)]
xen: Changes to printk handling:
1. Command-line option 'console_timestamps' adds a timestamp prefix
to each line of Xen console output (x86 only, after CMOS has been
interrogated).
2. Clean up prefix handling and vanity banner info.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 13:21:11 +0000 (14:21 +0100)]
Revert 16065:
671dcd08e806 and try again to fix the issue.
Changing LINUX_VER causes us to clone the wrong repository so instead
use the kernel's "kernelrelease" target to figure out the correct
Linux version.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 12:52:51 +0000 (13:52 +0100)]
xsview: a xenstore viewer written in PyQT.
From: Mark Williamson <mark.williamson@cl.cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 09:31:44 +0000 (10:31 +0100)]
Clean up grant-table code after recent changes.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 09:26:21 +0000 (10:26 +0100)]
Allow iomem permissions to be set up through grant table ops.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
Keir Fraser [Thu, 4 Oct 2007 09:25:35 +0000 (10:25 +0100)]
Fix TLB flush on grant unmap.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
Keir Fraser [Thu, 4 Oct 2007 09:03:04 +0000 (10:03 +0100)]
Fix kernel version after linux-2.6.18-xen.hg 219:
3e8752eb69dc which
applied 2.6.18.8,
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 08:57:17 +0000 (09:57 +0100)]
hvm: Fix the flush-all-tlbs hypercall.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 08:40:31 +0000 (09:40 +0100)]
This patch ensures xen vmm has exclusive access of vt-d hw by zapping
vt-d "DMAR" ACPI table signature after xen has finished using it.
Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Keir Fraser [Thu, 4 Oct 2007 08:39:40 +0000 (09:39 +0100)]
README: Remove incorrect information about PAE builds.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 4 Oct 2007 08:38:40 +0000 (09:38 +0100)]
xenbaked: Fix for new trace format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Thu, 4 Oct 2007 08:37:33 +0000 (09:37 +0100)]
[hotplug scripts] Unlock the 'block' lock before bailing.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Thu, 4 Oct 2007 08:36:18 +0000 (09:36 +0100)]
svm: Enable nested paging only on x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 15:33:23 +0000 (16:33 +0100)]
hvm: More changes to reduce size of domain structure.
It is now smaller than a page (4kB) on x86/32 and x86/64.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 14:47:47 +0000 (15:47 +0100)]
hvm: Do not include full hvm_hw_hpet in 'struct domain'. It is very
large due to the number of (unused) reserved registers. This
unnecessarily blots the size of the domain structure.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 13:56:31 +0000 (14:56 +0100)]
xm: Add accel option to xm network-attach.
Signed-off-by: Kieran Mansley <kmansley@solarflare.com>
Keir Fraser [Wed, 3 Oct 2007 13:41:28 +0000 (14:41 +0100)]
svm: Actually remove disabling of CR4-read-intercept when using NPT.
Should have been in the previosu changeset. Oops.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 13:33:57 +0000 (14:33 +0100)]
svm: Can only avoid CR3 reads when NPT is enabled.
CR0 and CR4 reads must still be intercepted.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 3 Oct 2007 13:07:30 +0000 (14:07 +0100)]
Merge with ia64 tree.
Keir Fraser [Wed, 3 Oct 2007 13:06:06 +0000 (14:06 +0100)]
xend: Check access to the privcmd interface before doing the call to
fetch the currently enforced policy. Assign 'INACCESSIBLE' to the
policy if it cannot be retrieved due to the user not being
privileged.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Wed, 3 Oct 2007 13:04:51 +0000 (14:04 +0100)]
Extend 'xm dumppolicy' to support Xen-API
I am extending 'xm dumppolicy' to be used via the Xen-API. For this
there are two new functions in the ACM policy class:
- get the currently enforced policy including statistical data from
the hypervisor
- get the ACM 'ssidref' of a Domain. Since this may be a ACM-specific
variable or type (int) I put it into the ACM class.
I extended the Xen-API documentation with the two new functions.
Signed-off-by: Stefan Berger <Stefanb@us.ibm.com>
Alex Williamson [Tue, 2 Oct 2007 17:31:55 +0000 (11:31 -0600)]
merge with xen-unstable.hg (staging)
Alex Williamson [Tue, 2 Oct 2007 16:07:35 +0000 (10:07 -0600)]
[IA64] micro-optimize and comments in vmx_ivt.S
Comments added + micro-optimizations.
In PHY_D mode, alt tlb misses can call vmx_hpw_miss.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 16:07:18 +0000 (17:07 +0100)]
x86/64: Fix build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Tue, 2 Oct 2007 16:04:56 +0000 (10:04 -0600)]
[IA64] cleanup in vmx headers
Reduce size of arch_vmx_struct (flags is now 1 byte).
Remove unused macro.
Add VMX_MMU_MODE macro.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Tue, 2 Oct 2007 15:59:27 +0000 (09:59 -0600)]
[IA64] Cleanup: remove useless #ifndef and indentation.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 15:59:07 +0000 (16:59 +0100)]
vtd: Dynamically allocate IRQ-tracking structures, only for those
domains that actually have PCI-passthru devices. Greatly reduces size
of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Tue, 2 Oct 2007 15:58:09 +0000 (09:58 -0600)]
[IA64] Remove warnings.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Tue, 2 Oct 2007 15:31:45 +0000 (09:31 -0600)]
[IA64] xenitp improvements
Remove all the casts by using char * instead of unsigned char *.
The go command now accept a number.
The disass command can now accept a range.
Number of TRs is not hard-coded.
'-' (minus) can now be used in expressions.
'$iip' and '$b0' can be used in expressions.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 15:28:58 +0000 (16:28 +0100)]
x86/32: Re-factor mapcache data structure into per-domain and per-vcpu
components. Greatly reduces size of 'struct domain'.
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Tue, 2 Oct 2007 15:20:41 +0000 (09:20 -0600)]
[IA64] xenitp: Display symbolic names of cr.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Tue, 2 Oct 2007 15:18:38 +0000 (09:18 -0600)]
[IA64] Fix + more cr regs for vcpu_get_context
Do not hard code number of TRs in vcpucontext.
Correctly fill rr7 and add more cr registers for get_vcpu_context.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Tue, 2 Oct 2007 12:19:25 +0000 (13:19 +0100)]
xentop: Flush batch output on SIGTERM or SIGINT.
Signed-off-by: INAKOSHI Hiroya <inakoshi.hiroya@jp.fujitsu.com>
Keir Fraser [Tue, 2 Oct 2007 09:53:14 +0000 (10:53 +0100)]
hvm svm: Fix #MC intercept routine for AMD SVM.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Tue, 2 Oct 2007 09:46:23 +0000 (10:46 +0100)]
Add XENPF_getidletime.
Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 09:45:53 +0000 (10:45 +0100)]
Clean up and fix XEN_SYSCTL_getcpuinfo error path.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 09:01:10 +0000 (10:01 +0100)]
xend: Fix name/uuid uniqueness checks.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Tue, 2 Oct 2007 08:59:39 +0000 (09:59 +0100)]
Revert 15642:
207582c8d88b532783da5c6f5839336187556f0a.
This patch is now bogus since 15168:
a717cb2fac90 is reverted
by 15973:
8817a53c030f.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Tue, 2 Oct 2007 08:56:53 +0000 (09:56 +0100)]
Fix external-device-migrate infinite loop.
For some (yet) unknown reason extern-device-migrate is called
twice, once with a missing domname argument.
The following invocation loops forever:
external-device-migrate -domname
because "shift 2" never shifts ($# < 2) and $# is always 1.
From: Pascal Bouchareine <pascal@gandi.net>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 08:41:10 +0000 (09:41 +0100)]
xenctx: Print EFLAGS for i386 and x86/64.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 08:35:37 +0000 (09:35 +0100)]
hvm: Fix HVMOP_flush_tlbs to flush paging-mode state.
From: Peter Johnston <pjohnston@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 2 Oct 2007 08:31:40 +0000 (09:31 +0100)]
xentrace: Fix xentrace_format for new file format.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Tue, 2 Oct 2007 08:30:36 +0000 (09:30 +0100)]
xentrace: Fix man page (remove xentrace_cpuinfo(1)).
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
Keir Fraser [Tue, 2 Oct 2007 08:29:23 +0000 (09:29 +0100)]
Fix ioemu compile on Solaris
Solaris doesn't have RLIMIT_RSS at least; don't try to set rlimits.
Signed-off-by: John Levon <john.levon@sun.com>
Keir Fraser [Tue, 2 Oct 2007 08:29:00 +0000 (09:29 +0100)]
Fix non-portabilities in libflask.
Signed-off-by: John Levon <john.levon@sun.com>
Keir Fraser [Tue, 2 Oct 2007 08:27:22 +0000 (09:27 +0100)]
xend: Fix refactoring done in CS 15938 in security.py.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Tue, 2 Oct 2007 08:26:18 +0000 (09:26 +0100)]
xm-test: Fix bugzilla #1051.
This is a patch to fix xm-test's network errors
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1051
From: Lukasz Szymanski <Lukasz.Szymanski@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Mon, 1 Oct 2007 19:59:37 +0000 (13:59 -0600)]
merge with xen-unstable.hg
Alex Williamson [Mon, 1 Oct 2007 15:59:24 +0000 (09:59 -0600)]
[IA64] xenitp: correctly size vcpu_ctx array
vcpu_ctx[] array size should be MAX_VIRT_CPUS instead of 1.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 1 Oct 2007 15:57:50 +0000 (09:57 -0600)]
[IA64] Fix wrong insertion of TLB entry in region 0
On PV domain with metaphysical mode, emulation of itc.d in region 0
doesn't work well and inserts an wrong TC entry.
Because set_one_rr() doesn't set the machine region register.
i.e. metaphyisical_rr0 is used instead of guest's rr[0].
This bug causes Dom0/U crash when an application uses region 0.
Actually I met the crash when I was building open GFW (java uses
region 0).
Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
Alex Williamson [Mon, 1 Oct 2007 15:53:48 +0000 (09:53 -0600)]
[IA64] xenctx: fix rse arithmetic
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Mon, 1 Oct 2007 15:52:14 +0000 (09:52 -0600)]
[IA64] Replace mode_flags by mmu_mode
Replace mode_flags by mmu_mode and put it into arch_vmx structure.
Cleanup in vmx_phy_mode.c to prepare for half-physical mode (dt=0,it=1)
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Mon, 1 Oct 2007 14:38:58 +0000 (15:38 +0100)]
x86: Rename math_state_restore() to more logical
do_device_not_available(), following naming convection for all other C
exception handlers.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 14:28:18 +0000 (15:28 +0100)]
x86: Clean up arch_set_info_guest() by having HVM VCPUs bail early.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 14:12:05 +0000 (15:12 +0100)]
hvm: Avoid need for ugly setcpucontext() in HVM domain builder by
pre-setting the vcpu0 to runnable inside Xen, and have the builder
insert a JMP instruction to reach the hvmloader entry point from
address 0x0.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 13:11:15 +0000 (14:11 +0100)]
hvm: Re-jig event delivery logic to better integrate TPR management.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 12:18:19 +0000 (13:18 +0100)]
libxenctrl: Fix lock_pages()/unlock_pages() region-size calculation.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Keir Fraser [Mon, 1 Oct 2007 08:32:25 +0000 (09:32 +0100)]
x86: Fix time going backwards on CPU frequency change.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 08:32:04 +0000 (09:32 +0100)]
x86: Fix debug build.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Mon, 1 Oct 2007 05:39:00 +0000 (06:39 +0100)]
xm: Print xend config via 'xm info --config'.
Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
Keir Fraser [Mon, 1 Oct 2007 05:36:25 +0000 (06:36 +0100)]
xsm:acm: Fix nul dereference bug (take 2).
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
Keir Fraser [Mon, 1 Oct 2007 05:35:40 +0000 (06:35 +0100)]
Revert 15975:
96f46954c7f1.
Keir Fraser [Mon, 1 Oct 2007 05:34:40 +0000 (06:34 +0100)]
vt-d: Allocate iommu pages from domheap rather than xenheap.
xenheap size is 9M on x86/32 xen, it's not enough to setup 1:1 mapping
page table for dom0. It causes dom0 cannot boot successfully. Instead
of xenheap, this patch setup 1:1 mapping page tabel in domheap, and
use map_domain_page() to get temporary mappings when need them.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Keir Fraser [Fri, 28 Sep 2007 15:00:44 +0000 (16:00 +0100)]
hvm: Clean up EFER handling. Check CR0/CR4/EFER on HVM restore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Fri, 28 Sep 2007 14:05:11 +0000 (15:05 +0100)]
xsm:acm: fix a null dereference bug.
Signed-off-by: George Coker <gscoker@alpha.ncsc.mil>
Keir Fraser [Fri, 28 Sep 2007 14:03:50 +0000 (15:03 +0100)]
hvm: Enable HAP by default (NPT on AMD SVM systems).
Signed-off-by: Keir Fraser <keir@xensource.com>
Alex Williamson [Thu, 27 Sep 2007 22:29:43 +0000 (16:29 -0600)]
[IA64] Kexec: Implement elf_core_save_regs()
Implement elf_core_save_regs() by porting (un #ifdefing)
ia64_elf_core_copy_regs() from Linux.
This ommits the calls to ia64_get_user_rbs_end() and ia64_sync_user_rbs()
in do_copy_task_regs(). Supplying them would seem to involve a reasonably
involved ammount of porting. I'm really not sure that its neccessary.
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 22:26:34 +0000 (16:26 -0600)]
[IA64] Kexec: Zap VHPT in relocate_kernel
On XEN do_ia64_purge_tlb unpins the VHPT entry, so it seems
logical that relocate_kernel should do the same thing.
It seems to work, but is it correct?
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 22:24:02 +0000 (16:24 -0600)]
[IA64] Kexec: Fix ia64_do_tlb_purge so that it works with XEN
Fix ia64_do_tlb_purge, its broken in too many ways
1. Call SET_PER_CPU_DATA before making any calls to GET_THIS_PADDR
to ensure that per-cpu data is set up correctly.
2. Use the per_cpu variable to derive CURRENT_STACK_OFFSET rather
than reading it from a kernel register. See 1) for explanation
of why.
3. In the VHPT pruning code, don't use r25 as ia64_jump_to_sal,
which branches to ia64_do_tlb_purge expects r25 to be preserved.
There seems no reason not to use r2 as per the other purges
done in ia64_do_tlb_purge. Furthermore use r16 and r18 instead
of r20 and r24 for consistency reasons.
4. Move __va_ul(vcpu_vhpt_maddr(v)) comment outside of
#if VHPT_ENABLED as it also applies to code further down that
is outside the #if
Cc: Tristan Gingold <tgingold@free.fr>,
Cc: Yutaka Ezaki <yutaka.ezaki@jp.fujitsu.com>,
Cc: Masaki Kanno <kanno.masaki@jp.fujitsu.com>,
Cc: Kazuhiro Suzuki <kaz@jp.fujitsu.com>,
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:35:02 +0000 (15:35 -0600)]
[IA64] Kexec: partial port of CPU_HOTPLUG
* Enable CONFIG_CPU_HOTPLUG
* Add #ifndef CONFIG_XEN as appropriate around portions that are not
needed for kexec - it is used to take down cpus on SMP systems
before kexecing.
* Port various xen-specific bits as neccessary
- This has mainly been done in the existing kexec-related files,
as kexex is currently the only user of this code. If a full
port of CPU_HOTPLUG was done then this code would either disapear
or be relocated elsewhere.
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:12:58 +0000 (15:12 -0600)]
[IA64] Kexec: Add kexec_disable_iosapic
Ported from Linux, this shuts down iosapic before preforming kexec.
This resolves a problem whereby the serial port on an HP RX2620
(which uses IOSAPIC) was not able to accept input. It probably
resolves a bunch of other as yet unseen problems too.
Thanks to Takebe-san for working out the solution to this puzzle.
Cc: Akio Takebe <takebe_akio@jp.fujitsu.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:10:42 +0000 (15:10 -0600)]
[IA64] Kdump: Save dom0_mm_pgd_mfn in vmcore on ia64
On Xen dom0_mm_pgd_mfn needs to be saved in the vmcore in
order to allow the crash utility to navigate the vmcore file.
Cc: Itsuro ODA <oda@valinux.co.jp>
Signed-off-by: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 21:08:13 +0000 (15:08 -0600)]
[IA64] kexec for xen
Basic port of kexec to xen
Signed-Off-By: Simon Horman <horms@verge.net.au>
Alex Williamson [Thu, 27 Sep 2007 18:22:16 +0000 (12:22 -0600)]
merge with xen-unstable.hg (staging)
Keir Fraser [Thu, 27 Sep 2007 17:08:11 +0000 (18:08 +0100)]
xend: Fix name uniqueness check (revert 15168:
a717cb2fac90).
Changeset 15168:
a717cb2fac90 altered check_name() in XendDomainInfo so
that it compares domain IDs instead of UUIDs. This breaks a number of
things
- You can no longer use 'xm new' to define a persistent config file for
a running guest. This breaks the key OS provisioning scenario where
you boot a kenrel+initrd for the installer, and at the same time
define a permanent config with pygrub.
- It lets you define multiple inactive guests with different UUIDs, but
the same name because all inactive guests have a domid of None. So
you can now end up with multiple guests with same name, which is
contrary to the goal implied by the patch which was name uniqueness.
It is unclear from the original commit logs just what scenario it was
trying to protect against, but the original checking of uniqueness
based on UUID was correct & is what was used in previous releases XenD.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Thu, 27 Sep 2007 16:44:03 +0000 (17:44 +0100)]
xend: fix server/netif.py so that it respects type=None.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Keir Fraser [Thu, 27 Sep 2007 15:50:52 +0000 (16:50 +0100)]
x86: If e820 map overflows, leak memory in a safe manner.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Thu, 27 Sep 2007 15:36:23 +0000 (16:36 +0100)]
ioemu: Fixes for BSD.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Alex Williamson [Thu, 27 Sep 2007 15:16:23 +0000 (09:16 -0600)]
[IA64] Consolidate DELIVER_PSR_CLR and DELIVER_PSR_SET definition.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Thu, 27 Sep 2007 15:08:26 +0000 (09:08 -0600)]
[IA64] Make viosapic SMP-safe adding lock/unlock similar to x86 vioapic
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Thu, 27 Sep 2007 15:03:43 +0000 (09:03 -0600)]
[IA64] make vacpi SMP-safe by adding lock similar to x86 pmtimer
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Alex Williamson [Thu, 27 Sep 2007 15:01:42 +0000 (09:01 -0600)]
[IA64] Merge vmx_dispatch_itlb_miss and vmx_dispatch_dtlb_miss
They were identical.
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Thu, 27 Sep 2007 15:00:06 +0000 (09:00 -0600)]
[IA64] asm-offsets.s must depend on $(HDRS)
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Keir Fraser [Thu, 27 Sep 2007 14:22:29 +0000 (15:22 +0100)]
xend: Fix dummy security_policy_dir.
Changeset 15951:
ad339d88639d split policy_dir_prefix into
security_dir_prefix and policy_dir_prefix in acm code. I think this
needs to be reflected in the dummy module as well (otherwise we blowup
when bootloader.py tries to reference security.security_dir_prefix).
Fixed in below patch.
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Thu, 27 Sep 2007 14:13:54 +0000 (15:13 +0100)]
libaio: Fix for *BSD
- Remove unused linux specific header
- Include <sys/time.h> needed for struct timespec
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Alex Williamson [Wed, 26 Sep 2007 19:22:17 +0000 (13:22 -0600)]
[IA64] Use same RID fro rr0 and rr4 in metaphysical mode.
Renames metaphysical_rr0 to metaphysical_rid_dt
Renames metaphysical_rr4 to metaphysical_rid_d
Add comments in optvfault.S
cleanup and update vmx_phy_mode.[ch]
Signed-off-by: Tristan Gingold <tgingold@free.fr>
Alex Williamson [Wed, 26 Sep 2007 18:43:41 +0000 (12:43 -0600)]
[IA64] clean up xenitp build warnings
Signed-off-by: Alex Williamson <alex.williamson@hp.com>
Keir Fraser [Wed, 26 Sep 2007 16:11:07 +0000 (17:11 +0100)]
xend: Slightly finesse allocation of vmpath in xenstore.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 15:50:28 +0000 (16:50 +0100)]
hvm: Fix task switch update of TR state.
Also remove unneeded duplicate paging_update_cr3().
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 13:39:56 +0000 (14:39 +0100)]
[xend,xenapi] Fix handling of scheduler params
When creating domains that specify scheduler parameters with XenAPI,
the specified parameters are not used when starting the domain. This
patch collapses cpu_weight and cpu_cap in XendConfig into the
vcpus_params dictionary. The patch has been tested using xm and
XenAPI on config with and without scheduler parameters.
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
Keir Fraser [Wed, 26 Sep 2007 13:14:16 +0000 (14:14 +0100)]
x86: force DMI table to not be in E820 RAM region
In order for Dom0 to be able to map the DMI table, it must not be in
E820 RAM; since some BIOS versions apparently fail to set the type
correctly for the page(s) containing this table, adjust it before
starting to consume memory.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 08:19:12 +0000 (09:19 +0100)]
ioemu: security fixes for not-built or not-default-configured subsystems.
Patches originally proposed by S. Caglar Onur and cleaned up for
xen-unstable by Robert Buchholz <rbu@gentoo.org>.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Wed, 26 Sep 2007 08:15:34 +0000 (09:15 +0100)]
vt-d: Fix crash on x86/32.
On 32-bit xen, dom0 crashes when using VT-d to assign devices. It is
caused by setting m2p in clear_mmio_p2m_entry(), because
machine_to_phys_map[] entry for mmio address is not mapped.
Signed-off-by: Weidong Han <weidong.han@intel.com>
Keir Fraser [Wed, 26 Sep 2007 08:14:33 +0000 (09:14 +0100)]
hvm: Improve tcgbios code for finding ACPI RSDP.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
Keir Fraser [Wed, 26 Sep 2007 08:11:46 +0000 (09:11 +0100)]
xenapi: add xen_xspolicy.h to libxen includes file
Signed-off by: Reiner Sailer <sailer@us.ibm.com>
Keir Fraser [Wed, 26 Sep 2007 08:10:41 +0000 (09:10 +0100)]
firmware: fix romimage generation for *bsd
- portability fix in Makefile: mkhex is not bash specific
- GNU od separates column with one blank, BSD od uses eight blanks.
Change sed to deal with this.
- Add a fourth sed to fix a build error on NetBSD
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Keir Fraser [Tue, 25 Sep 2007 21:28:17 +0000 (22:28 +0100)]
hvm: eflags[1] must remain set across task switch.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 25 Sep 2007 14:35:17 +0000 (15:35 +0100)]
xend: Fix VIF MAC address being lost across localhost migration.
VIF details in /vm/<uuid> directory in xenstore get deleted by old
domain dying.
Signed-off-by: Keir Fraser <keir@xensource.com>
Keir Fraser [Tue, 25 Sep 2007 09:40:38 +0000 (10:40 +0100)]
Fix xend start after xsm:acm bootloader changes.
Signed-off-by: Keir Fraser <keir@xensource.com>